﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bank
{
    class Program
    {
        static void Main(string[] args)
        {
          //  Customer cust = new Customer("ivan", 123, 123);

            Individual ind = new Individual("ivan", "ivanov", 213123, 2313);
            Company comp = new Company("milka", "kravata", 123123, 31231);

            Deposit asd = new Deposit(ind, 123, 123);



            Console.WriteLine(asd.Balance);
            asd.DepositAmount(4);
            Console.WriteLine(asd.Balance);
            asd.WhitdrawAmount(11);
            Console.WriteLine(asd.Balance);

            Loan lo = new Loan(ind, 10, 11);
            Loan milkLo = new Loan(comp, 123, 10);
            Deposit dep = new Deposit(ind, 500, 3);


            Console.WriteLine(lo.Balance);
            lo.DepositAmount(5);
            Console.WriteLine(lo.Balance);
            Console.WriteLine(lo.CalculateInterest(-1));

            Console.WriteLine(milkLo.CalculateInterest(4));
            Console.WriteLine(dep.CalculateInterest(1));
        }
    }
}
